using System;
using System.Collections.Generic;
using System.Linq;
using Webshop20.Domain.Catalog.Core;

namespace Webshop20.Infrastructure.Persistence.NH.AutoMappings.Conventions.Common
{
    public class ClassIs
    {

        public static List<Type> excludedTypes = new List<Type>() { typeof(Visitor) };

        public static bool Excluded(string typeName)
        {
            return excludedTypes.Where(x=>x.Name == typeName).FirstOrDefault() != null;
        }
    }
}